package main

import (
	"time"
)

// 处理GPS纪录类别 0200 定时器
func TimerBirthWarmPress0200(dbo *DBOperation, cfg *Config) {
	zLog("处理GPS纪录类别定时器 TimerBirthWarmPress0200 start.....")
	processor := NewProcessor(dbo, cfg)
	// 创建定时器
	ticker := time.NewTicker(time.Second * time.Duration(cfg.MaxBirthWarmPress0200))
	for {
		select {
		case <-ticker.C:
			processor.processBirthWarmPress0200()
		}
	}
}
